package com.geh.learn.split;

import java.util.Arrays;
import java.util.List;

/**
 * Created by gehui on 2017/6/2.
 */

public class StringJoinExample {

    public static void main(String[] args) {

        List<String> list = Arrays.asList("how", "to", "do", "in", "java");

        String result = String.join(",", list);
        System.out.println(result);
    }

}